-- card: 4167 from stack: in -- bmap block id: 5017 -- flags: 0000 -- background id: 2637 -- name: Tempo ----- HyperTalk script ----- on openCard push recent card end openCard -- part 3 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=44 top=71 right=255 bottom=464 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 12 -- part name: -- part 4 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=123 top=262 right=277 bottom=339 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 12 -- part name: ----- HyperTalk script ----- on mouseUp go to card "Tempo 1" end mouseUp -- part 5 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=123 top=283 right=298 bottom=360 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 12 -- part name: ----- HyperTalk script ----- on mouseUp go to card "Tempo 2" end mouseUp -- part contents for card part 3 ----- text ----- The PostEvent command allows a script to post a keydown event with arbitrary modifiers (Option, Command, Shift, Caps Lock or any combination of these). If there is a Tempo macro corresponding to this key combination, then it should run. PostEvent is called like this for Tempo: PostEvent modifier,virtual keyCode For instance, the following call posts an option-w: PostEvent "O",13 (where the first argument is an upper-case "Oh", not a zero). A “virtual keyCode” is a keyboard-independent method of identifying a keystroke. -- part contents for card part 4 ----- text ----- • Click here to find about modifiers -- part contents for card part 5 ----- text ----- • Click here to see a table of virtual keyCodes